package Border;

/**
 * Enum that is used to give the direction of which border is mentioned.
 * 
 * @author Koen Certyn & Michiel Meersmans
 * 
 */
public enum Direction {
	EAST, 
	WEST, 
	SOUTH, 
	NORTH, 
	FLOOR, 
	CEILING;
	
	/**
	 * Gets the opposite direction
	 * 
	 * @return	The opposite direction
	 */
	public Direction getOpposite()
	{
		switch(this)
		{
			case EAST:
				return WEST;
			case WEST:
				return EAST;
			case SOUTH:
				return NORTH;
			case NORTH:
				return SOUTH;
			case FLOOR:
				return CEILING;
			case CEILING:
				return FLOOR;
		}
		return null;
	}
	
	}